<template>
  <div class="layui-layout layui-layout-admin">
    <div class="layui-header">
      <div class="layui-logo">
        <!-- <img src="" alt=""> -->
        <p>晒晒</p>
      </div>
      <ul class="layui-nav layui-layout-right">
        <li class="layui-nav-item">
          <a href="javascript:;">
            <img src="http://t.cn/RCzsdCq" class="layui-nav-img">
            贤心
          </a>
          <dl class="layui-nav-child">
            <dd><a href="">基本资料</a></dd>
            <dd><a href="">安全设置</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item"><a href="">退了</a></li>
      </ul>
    </div>
  
    <div class="layui-side layui-bg-black">
      <div class="layui-side-scroll">
        <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
        <ul class="layui-nav layui-nav-tree layui-inline" lay-filter="demo">
          <!--<li class="layui-nav-item"><a class="" href="">晒晒首页</a></li>-->
          <li class="layui-nav-item layui-this"><router-link to="/activityList">晒晒活动</router-link></li>
          <li class="layui-nav-item"><router-link to="/giftList">奖励库</router-link></li>
          <li class="layui-nav-item"><router-link to="/memberList">用户管理</router-link></li>
          <li class="layui-nav-item"><router-link to="/supportList">赞助商</router-link></li>
          <li class="layui-nav-item layui-nav-itemed">
            <router-link to="">审核投诉<span class="layui-nav-more"></span></router-link>
            <dl class="layui-nav-child">
              <dd><router-link to="/contentCheck">内容审核</router-link></dd>
              <dd><router-link to="/complainRecord">投诉记录</router-link></dd>
            </dl>
          </li>
          <span class="layui-nav-bar" style="top: 227.5px; height: 0px; opacity: 0;"></span>
        </ul>
      </div>
    </div>
    
    
    <div class="layui-footer">
      <!-- 底部固定区域 -->
    </div>
  </div>
</template>

<script>
export default {
  name: 'slidebar',
  data () {
    return {
      
    }
  },
  mounted(){
    //JavaScript代码区域
layui.use('element', function(){
  var element = layui.element;
  //监听导航点击
  element.on('nav(demo)', function(elem){
    //console.log(elem)
    layer.msg(elem.text());
  });
});
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>

</style>
